﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="box"></div>
<script>
    //把网页地址填充到 box 中
    document.getElementById('box').innerHTML = location.href;
</script>
</body>
</html>